package cn.com.godliu.rabbitmqprovider.consumer;

import io.swagger.annotations.Api;
import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

import java.util.Map;

@Component

@Api(tags = "扇形接收器")
public class FanoutCReceiver {
    @RabbitListener(queues = "fanout.C")
    public void process(Map testMessage) {
        System.out.println("FanoutCReceiver消费者收到消息  : " + testMessage.toString());
    }

}
